//
//  SDCommonDefine.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#ifndef SDCommonDefine_h
#define SDCommonDefine_h

static NSString* SDErrorDomain = @"com.tencent.error.domain";

typedef NS_ENUM(NSInteger, SDErrorCode){
    SDErrorCode_JSONParser_UnSupportedObject        = -1000,
    SDErrorCode_JSONData_Unexpected                 = -1010,
    SDErrorCode_Request_Status_NoMarkTeam           = -1020,
    SDErrorCode_Request_Status_NoNews               = -1030,
    
    SDErrorCode_WeiboLogon_Failed                   = -2000,
    SDErrorCode_WeiboLogon_Cancelled                = -2001,
    
    SDErrorCode_Server_Return_Error                 = -3000,
    SDErrorCode_Server_NoLogin                      = 30,
    SDErrorCode_Server_CommentNotExist              = 47,
    SDErrorCode_Server_TopicAlreadyUped             = 43,
    SDErrorCode_Server_VoteTimeOut                  = 1011,
    SDErrorCode_Server_UserBlack                    = 71,
    SDErrorCode_Server_UserBlock                    = 72,
    SDErrorCode_Server_Unsafe                       = -4000,
};

#define HTTP_DELETE_METHOD @"DELETE"
#define HTTP_PUT_METHOD @"PUT"
#define HTTP_POST_METHOD @"POST"

#define color_NavigationBar 0x24d9c6

#define kStatusBarHeight 20

#define kNavBarHeight ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0 ?  64 : 44)

#define kNaviOrigenY  ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0 ?  20 : 0)

#define layoutScreenWidth 320.0

#define laycreenHeight ([UIScreen mainScreen].bounds.size.height==480.0?480.0:568.0)

#define layoutScreenHeight ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0 ?  laycreenHeight : (laycreenHeight-20))


#define MainTabBar_H 50

#define kScreenWidth ([UIScreen screenSize].width)
#define kScreenHeight  ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0 ?  [UIScreen screenSize].height : ([UIScreen screenSize].height-20))
#endif /* SDCommonDefine_h */
